<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" session="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<body>
<form:form method="POST" modelAttribute="transaction" action="/dispatch/deletetran">
Are you sure to delete this transaction record?

<br>
Action: <c:out value="${transaction.action}"/>
<br>
Stock: <c:out value="${transaction.symbol}"/>
<br>
Price: <fmt:formatNumber type="number" minFractionDigits="2" maxFractionDigits="2" value="${transaction.price}" />
<br>
Date: <fmt:formatDate value="${transaction.date}" pattern="MM/dd/yyyy"/>
<br>
Shares: <fmt:formatNumber type="number" minFractionDigits="0" maxFractionDigits="0" value="${transaction.volume}" />
<form:hidden path="id"/>
<form:hidden path="action"/>
<form:hidden path="price"/>
<form:hidden path="volume"/>
<form:hidden path="symbol"/>
<form:hidden path="originalTransaction"/>
<br>
<input type="submit" name="submit" value="DELETE"></td>
<input type="button" name="Cancel" value="CANCEL" onclick="document.location.href='/dispatch/transactions'"/>
</form:form>
</body>
</html>